home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / imglib2 / imgIRequest.h < prev   
C/C++ Source or Header  |  2006-05-08  |  6KB  |  198 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM imgIRequest.idl
  3.  */
  4.  
  5. #ifndef __gen_imgIRequest_h__
  6. #define __gen_imgIRequest_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsIRequest_h__
  14. #include "nsIRequest.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21. class imgIContainer; /* forward declaration */
  22.  
  23. class imgIDecoderObserver; /* forward declaration */
  24.  
  25. class nsIURI; /* forward declaration */
  26.  
  27.  
  28. /* starting interface:    imgIRequest */
  29. #define IMGIREQUEST_IID_STR "ccf705f6-1dd1-11b2-82ef-e18eccf7f7ec"
  30.  
  31. #define IMGIREQUEST_IID \
  32.   {0xccf705f6, 0x1dd1, 0x11b2, \
  33.     { 0x82, 0xef, 0xe1, 0x8e, 0xcc, 0xf7, 0xf7, 0xec }}
  34.  
  35. /**
  36.  * imgIRequest interface
  37.  *
  38.  * @author Stuart Parmenter <pavlov@netscape.com>
  39.  * @version 0.1
  40.  * @see imagelib2
  41.  */
  42. class NS_NO_VTABLE imgIRequest : public nsIRequest {
  43.  public: 
  44.  
  45.   NS_DEFINE_STATIC_IID_ACCESSOR(IMGIREQUEST_IID)
  46.  
  47.   /**
  48.    * the image container...
  49.    * @return the image object associated with the request.
  50.    * @attention NEED DOCS
  51.    */
  52.   /* readonly attribute imgIContainer image; */
  53.   NS_IMETHOD GetImage(imgIContainer * *aImage) = 0;
  54.  
  55.   /**
  56.    * Bits set in the return value from imageStatus
  57.    * @name statusflags
  58.    */
  59.   enum { STATUS_NONE = 0 };
  60.  
  61.   enum { STATUS_SIZE_AVAILABLE = 1 };
  62.  
  63.   enum { STATUS_LOAD_PARTIAL = 2 };
  64.  
  65.   enum { STATUS_LOAD_COMPLETE = 4 };
  66.  
  67.   enum { STATUS_ERROR = 8 };
  68.  
  69.   enum { STATUS_FRAME_COMPLETE = 16 };
  70.  
  71.   /**
  72.    * something
  73.    * @attention NEED DOCS
  74.    */
  75.   /* readonly attribute unsigned long imageStatus; */
  76.   NS_IMETHOD GetImageStatus(PRUint32 *aImageStatus) = 0;
  77.  
  78.   /* readonly attribute nsIURI URI; */
  79.   NS_IMETHOD GetURI(nsIURI * *aURI) = 0;
  80.  
  81.   /* readonly attribute imgIDecoderObserver decoderObserver; */
  82.   NS_IMETHOD GetDecoderObserver(imgIDecoderObserver * *aDecoderObserver) = 0;
  83.  
  84.   /* readonly attribute string mimeType; */
  85.   NS_IMETHOD GetMimeType(char * *aMimeType) = 0;
  86.  
  87.   /**
  88.    * Clone this request; the returned request will have aObserver as the
  89.    * observer.  aObserver will be notified synchronously (before the clone()
  90.    * call returns) with all the notifications that have already been dispatched
  91.    * for this image load.
  92.    */
  93.   /* imgIRequest clone (in imgIDecoderObserver aObserver); */
  94.   NS_IMETHOD Clone(imgIDecoderObserver *aObserver, imgIRequest **_retval) = 0;
  95.  
  96. };
  97.  
  98. /* Use this macro when declaring classes that implement this interface. */
  99. #define NS_DECL_IMGIREQUEST \
  100.   NS_IMETHOD GetImage(imgIContainer * *aImage); \
  101.   NS_IMETHOD GetImageStatus(PRUint32 *aImageStatus); \
  102.   NS_IMETHOD GetURI(nsIURI * *aURI); \
  103.   NS_IMETHOD GetDecoderObserver(imgIDecoderObserver * *aDecoderObserver); \
  104.   NS_IMETHOD GetMimeType(char * *aMimeType); \
  105.   NS_IMETHOD Clone(imgIDecoderObserver *aObserver, imgIRequest **_retval); 
  106.  
  107. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  108. #define NS_FORWARD_IMGIREQUEST(_to) \
  109.   NS_IMETHOD GetImage(imgIContainer * *aImage) { return _to GetImage(aImage); } \
  110.   NS_IMETHOD GetImageStatus(PRUint32 *aImageStatus) { return _to GetImageStatus(aImageStatus); } \
  111.   NS_IMETHOD GetURI(nsIURI * *aURI) { return _to GetURI(aURI); } \
  112.   NS_IMETHOD GetDecoderObserver(imgIDecoderObserver * *aDecoderObserver) { return _to GetDecoderObserver(aDecoderObserver); } \
  113.   NS_IMETHOD GetMimeType(char * *aMimeType) { return _to GetMimeType(aMimeType); } \
  114.   NS_IMETHOD Clone(imgIDecoderObserver *aObserver, imgIRequest **_retval) { return _to Clone(aObserver, _retval); } 
  115.  
  116. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  117. #define NS_FORWARD_SAFE_IMGIREQUEST(_to) \
  118.   NS_IMETHOD GetImage(imgIContainer * *aImage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImage(aImage); } \
  119.   NS_IMETHOD GetImageStatus(PRUint32 *aImageStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImageStatus(aImageStatus); } \
  120.   NS_IMETHOD GetURI(nsIURI * *aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURI(aURI); } \
  121.   NS_IMETHOD GetDecoderObserver(imgIDecoderObserver * *aDecoderObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDecoderObserver(aDecoderObserver); } \
  122.   NS_IMETHOD GetMimeType(char * *aMimeType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMimeType(aMimeType); } \
  123.   NS_IMETHOD Clone(imgIDecoderObserver *aObserver, imgIRequest **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Clone(aObserver, _retval); } 
  124.  
  125. #if 0
  126. /* Use the code below as a template for the implementation class for this interface. */
  127.  
  128. /* Header file */
  129. class _MYCLASS_ : public imgIRequest
  130. {
  131. public:
  132.   NS_DECL_ISUPPORTS
  133.   NS_DECL_IMGIREQUEST
  134.  
  135.   _MYCLASS_();
  136.  
  137. private:
  138.   ~_MYCLASS_();
  139.  
  140. protected:
  141.   /* additional members */
  142. };
  143.  
  144. /* Implementation file */
  145. NS_IMPL_ISUPPORTS1(_MYCLASS_, imgIRequest)
  146.  
  147. _MYCLASS_::_MYCLASS_()
  148. {
  149.   /* member initializers and constructor code */
  150. }
  151.  
  152. _MYCLASS_::~_MYCLASS_()
  153. {
  154.   /* destructor code */
  155. }
  156.  
  157. /* readonly attribute imgIContainer image; */
  158. NS_IMETHODIMP _MYCLASS_::GetImage(imgIContainer * *aImage)
  159. {
  160.     return NS_ERROR_NOT_IMPLEMENTED;
  161. }
  162.  
  163. /* readonly attribute unsigned long imageStatus; */
  164. NS_IMETHODIMP _MYCLASS_::GetImageStatus(PRUint32 *aImageStatus)
  165. {
  166.     return NS_ERROR_NOT_IMPLEMENTED;
  167. }
  168.  
  169. /* readonly attribute nsIURI URI; */
  170. NS_IMETHODIMP _MYCLASS_::GetURI(nsIURI * *aURI)
  171. {
  172.     return NS_ERROR_NOT_IMPLEMENTED;
  173. }
  174.  
  175. /* readonly attribute imgIDecoderObserver decoderObserver; */
  176. NS_IMETHODIMP _MYCLASS_::GetDecoderObserver(imgIDecoderObserver * *aDecoderObserver)
  177. {
  178.     return NS_ERROR_NOT_IMPLEMENTED;
  179. }
  180.  
  181. /* readonly attribute string mimeType; */
  182. NS_IMETHODIMP _MYCLASS_::GetMimeType(char * *aMimeType)
  183. {
  184.     return NS_ERROR_NOT_IMPLEMENTED;
  185. }
  186.  
  187. /* imgIRequest clone (in imgIDecoderObserver aObserver); */
  188. NS_IMETHODIMP _MYCLASS_::Clone(imgIDecoderObserver *aObserver, imgIRequest **_retval)
  189. {
  190.     return NS_ERROR_NOT_IMPLEMENTED;
  191. }
  192.  
  193. /* End of implementation class template. */
  194. #endif
  195.  
  196.  
  197. #endif /* __gen_imgIRequest_h__ */
  198.